import java.util.Scanner;
public class 作业8 {
    public static void main(String[] args) {
        int[] is={10,5,20};
        int temp;
        for (int i = 0;i <is.length; i++){
            for (int j i+1; j < is.length; j++){
                if (is[i] > is[j])
                {temp = is[is]; is[i] = is[j]; is[j] = temp;
                }
            }
        }
       for (int i = 0; i < is.length;i++){
           System.out.println(is[i]+"");
    }
}